import "./banner.css";
import tpl from "./banner.tpl";

import {tplReplace} from "../../utils/tools";

import bannerList from "./banner-list/banner-list";
import bannerDian from "./banner-dian/banner-dian";

export default (bannerListD)=>{

    return{
        name:"banner",
        tpl(){
            return tplReplace(tpl(),{
                listWidth:(bannerListD.length+1)*710,
                list:bannerList(bannerListD).tpl(),
                dian:bannerDian(bannerListD.length).tpl()
            });
        }
    }
}
